﻿
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Test</title>
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />

    <!--
    <link type="text/css" rel="stylesheet" href="./assets/dist/themes/default/style.min.css" />
    <script type="text/javascript" src="./Scripts/ScriptLoader.js"></script>
    -->

    <script type="text/javascript" src="./Scripts/ScriptLoader.js"></script>


    <style type="text/css" media="all">
        html, body 
        {
            width: 100%;
            height: 100%;
            margin: 0px;
            padding: 0px;
            overflow: auto;
        }

    </style>

    <script type='text/javascript'>

        function addScript()
        {
            // HTMLLinkElement
            var fileref = document.createElement("link");
            fileref.rel = "stylesheet";
            fileref.type = "text/css";
            fileref.href = "filename";
            document.getElementsByTagName("head")[0].appendChild(fileref)
        }


        function addScr(filename)
        {
            var script = document.createElement('script');
            script.type = 'text/javascript';
            script.src = filename;
            script.onload = function () {
                //do stuff with the script
                console.log('Loaded script "' + filename + '".');
                console.log(Script1);
            };

            document.head.appendChild(script); //or something of the likes
        }


        // addScr("/Scripts/Script1.js");

        function hello()
        {
            console.log("hello");
        }


        // loadRequiredFiles(hello);

    </script>
</head>

<body onload="">

</body>
</html>
